import request from '@/utils/request'

// 查询策略执行信息列表
export function listSysStrategyExecuteInfo (query) {
  return request({
    url: '/sys/sysStrategyExecuteInfo/list',
    method: 'get',
    params: query
  })
}

// 查询策略执行信息详细
export function getSysStrategyExecuteInfo (id) {
  return request({
    url: '/sys/sysStrategyExecuteInfo/' + id,
    method: 'get'
  })
}

// 新增策略执行信息
export function addSysStrategyExecuteInfo (data) {
  return request({
    url: '/sys/sysStrategyExecuteInfo',
    method: 'post',
    data: data
  })
}

// 修改策略执行信息
export function updateSysStrategyExecuteInfo (data) {
  return request({
    url: '/sys/sysStrategyExecuteInfo',
    method: 'put',
    data: data
  })
}

// 删除策略执行信息
export function delSysStrategyExecuteInfo (id) {
  return request({
    url: '/sys/sysStrategyExecuteInfo/' + id,
    method: 'delete'
  })
}

// 导出策略执行信息
export function exportSysStrategyExecuteInfo (query) {
  return request({
    url: '/sys/sysStrategyExecuteInfo/export',
    method: 'get',
    params: query
  })
}
// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/sys/sysStrategyExecuteInfo/getInitData/' + dictTypes,
    method: 'get'
  })
}
